package com.meilai.project.mapper.business.installOrder;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.entity.business.installOrder.WorkOrderInstallDetailPoint;
import com.meilai.project.vo.app.CompanyOfflineWorkOrderProcessingBuildingRemainDeviceDataVO;
import com.meilai.project.vo.app.RemainDeviceDataVO;
import com.meilai.project.vo.business.installOrder.Id2PointIdVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface WorkOrderInstallDetailPointMapper extends BaseMapper<WorkOrderInstallDetailPoint> {

    List<Id2PointIdVO> listMediaPointByWorkOrderIds(@Param("ids") List<Long> workerOrderIdList);

    List<CompanyOfflineWorkOrderProcessingBuildingRemainDeviceDataVO> queryBillRemainDevicesForAppExceptUnPublish(@Param("workOrderIds") Set<Long> workOrderIds);

    List<CompanyOfflineWorkOrderProcessingBuildingRemainDeviceDataVO> queryNotBillRemainDevicesForApp(@Param("workOrderIds") Set<Long> workOrderIds);

    List<CompanyOfflineWorkOrderProcessingBuildingRemainDeviceDataVO> queryUnPublishRemainDevicesForApp(@Param("workOrderIds") Set<Long> workOrderIds);

    List<RemainDeviceDataVO> queryUnPublishSubmitDevicesForApp(@Param("workOrderIds") Set<Long> workOrderIds);
}
